import request from '@/utils/request'

// 查询色谱仪列表
export function listTdmSePuYi(query) {
  return request({
    url: '/tdm/TdmSePuYi/list',
    method: 'get',
    params: query
  })
}

// 查询色谱仪详细
export function getTdmSePuYi(id) {
  return request({
    url: '/tdm/TdmSePuYi/' + id,
    method: 'get'
  })
}

// 新增色谱仪
export function addTdmSePuYi(data) {
  return request({
    url: '/tdm/TdmSePuYi',
    method: 'post',
    data: data
  })
}

// 修改色谱仪
export function updateTdmSePuYi(data) {
  return request({
    url: '/tdm/TdmSePuYi',
    method: 'put',
    data: data
  })
}

// 删除色谱仪
export function delTdmSePuYi(id) {
  return request({
    url: '/tdm/TdmSePuYi/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
